#pragma once

// Class that provides better mouse click handling for the standard windows slider control
class CSliederCtrlEx : public CSliderCtrl
{
public:
	DECLARE_DYNAMIC(CSliederCtrlEx)
	CSliederCtrlEx() : m_Dragging(false), m_DragChanged(false) {}
protected:
	//{{AFX_MSG(CSliederCtrlEx)
	afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
	afx_msg void OnMouseMove(UINT nFlags, CPoint point);
	afx_msg void OnLButtonUp(UINT nFlags, CPoint point);
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
private:
	bool SetThumb(const CPoint& pt);
	void PostMessageToParent(const int nTBCode) const;
	bool m_Dragging;
	bool m_DragChanged;
};